
<?php
return [
    'id'=>'send-form',
    'template'=>'form_default',
    'enableClientValidation'=>false,
    'enableAjaxValidation'=>false,
    'options'=>['class'=>'form-validate'],
    'models'=>[
        'send'=>[
            'title'=>'发卡',
            'th_with'=>80,
            'elements'=>[
                'batch_id'=>[
                    'type'=>'dropdownlist',
                    'options'=>[
                        'prompt'=>'选择所属批次',
                        'encode'=>false,
                        'style'=>'width:206px'
                    ],
                    'items'=>[],
                ],
                'salesman_id'=>[
                    'type'=>'widget',
                    'class'=> \kartik\select2\Select2::className(),
                    'data' =>[],
                    'options' => ['placeholder' => '请选择...']
                ],
                'card_start'=>[
                    'type'=>'text',
                    'options'=>['class'=>'timepicker input-text']
                ],
                'card_end'=>[
                    'type'=>'text',
                    'options'=>['class'=>'input-text']
                ],
                'dues_proportion'=>[
                    'type'=>'text',
                    'options'=>['class'=>'input-text','size'=>5],
                    'hint' =>'比例为整数，如20% 填写20'
                ],
                'commission_rate'=>[
                    'type'=>'text',
                    'options'=>['class'=>'input-text','size'=>5],
                    'hint' =>'比例为整数，如20% 填写20'
                ],
                'dues_desc'=>[
                    'type'=>'textarea',
                    'options'=>['class'=>'input-textarea']
                ],
            ]
        ]
    ]
];

